<template>
    <div>
        <h3>ComB组件</h3>
        <div>money:{{ money }}</div>
    </div>
</template>

<script setup>
import { ref } from 'vue'
const money = ref(100)

const add = (a, b) => {
    return a + b
}

// 将组件的属性进行暴露出去，外面才可以通过此组件实例去获取
defineExpose({
    money,
    add
})

</script>